﻿@model MTO.Library.Domain.Customer

@Html.ValidationSummary()

@using (Html.BeginForm(null, null, FormMethod.Post, new { @class = "form-horizontal" }))
{
    <fieldset id="customerFieldset">
        <div class="control-group">
            @Html.EditorLabelFor(x => x.FirstName, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(x => x.FirstName, new { @class = "t-input" })
            </div>
        </div>

        <div class="control-group">
            @Html.EditorLabelFor(x => x.LastName, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(x => x.LastName, new { @class = "t-input" })
            </div>
        </div>

        <div class="control-group">
            @Html.EditorLabelFor(x => x.Address.StreetAddress, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(x => x.Address.StreetAddress, new { @class = "t-input" })
            </div>
        </div>

        <div class="control-group">
            @Html.EditorLabelFor(x => x.Address.ZipCode, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(x => x.Address.ZipCode, new { @class = "t-input" })
            </div>
        </div>
    </fieldset>
}